<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Eigen: CwiseNullaryOp.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="eigendoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Eigen_Silly_Professor_64x64.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://eigen.tuxfamily.org">Eigen</a>
   &#160;<span id="projectnumber">3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('CwiseNullaryOp_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CwiseNullaryOp.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// This file is part of Eigen, a lightweight C++ template library</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// for linear algebra.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2008-2010 Gael Guennebaud &lt;gael.guennebaud@inria.fr&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This Source Code Form is subject to the terms of the Mozilla</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// Public License v. 2.0. If a copy of the MPL was not distributed</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef EIGEN_CWISE_NULLARY_OP_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define EIGEN_CWISE_NULLARY_OP_H</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;./InternalHeaderCheck.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceEigen.html">Eigen</a> {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> NullaryOp, <span class="keyword">typename</span> PlainObjectType&gt;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">struct </span>traits&lt;CwiseNullaryOp&lt;NullaryOp, PlainObjectType&gt; &gt; : traits&lt;PlainObjectType&gt;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    Flags = traits&lt;PlainObjectType&gt;::Flags &amp; <a class="code" href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">RowMajorBit</a></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  };</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;};</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;} <span class="comment">// namespace internal</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> NullaryOp, <span class="keyword">typename</span> PlainObjectType&gt;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classEigen_1_1CwiseNullaryOp.html">   62</a></span>&#160;<span class="keyword">class </span><a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp</a> : <span class="keyword">public</span> internal::dense_xpr_base&lt; CwiseNullaryOp&lt;NullaryOp, PlainObjectType&gt; &gt;::type, internal::no_assignment_operator</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;{</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> internal::dense_xpr_base&lt;CwiseNullaryOp&gt;::type Base;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    EIGEN_DENSE_PUBLIC_INTERFACE(<a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp</a>)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    EIGEN_DEVICE_FUNC</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols, <span class="keyword">const</span> NullaryOp&amp; func = NullaryOp())</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;      : m_rows(rows), m_cols(cols), m_functor(func)</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      eigen_assert(rows &gt;= 0</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            &amp;&amp; (RowsAtCompileTime == <a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a> || RowsAtCompileTime == rows)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            &amp;&amp;  cols &gt;= 0</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            &amp;&amp; (ColsAtCompileTime == <a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a> || ColsAtCompileTime == cols));</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_rows.value(); }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cols.value(); }</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    EIGEN_DEVICE_FUNC</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classEigen_1_1CwiseNullaryOp.html#afef9c2479e357786e4c92da1aa625248">   86</a></span>&#160;    <span class="keyword">const</span> NullaryOp&amp; <a class="code" href="classEigen_1_1CwiseNullaryOp.html#afef9c2479e357786e4c92da1aa625248">functor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_functor; }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">const</span> internal::variable_if_dynamic&lt;Index, RowsAtCompileTime&gt; m_rows;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">const</span> internal::variable_if_dynamic&lt;Index, ColsAtCompileTime&gt; m_cols;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">const</span> NullaryOp m_functor;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;};</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> CustomNullaryOp&gt;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">const</span> CwiseNullaryOp&lt;CustomNullaryOp,typename DenseBase&lt;Derived&gt;::PlainObject&gt;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keyword">const</span> CwiseNullaryOp&lt;CustomNullaryOp,PlainObject&gt;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">  116</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols, <span class="keyword">const</span> CustomNullaryOp&amp; func)</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a>(rows, cols, func);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;}</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> CustomNullaryOp&gt;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="keyword">const</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, typename DenseBase&lt;Derived&gt;::PlainObject</a>&gt;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">const</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a9752ee59976a4b4aad860ad1a9093e7f">  147</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> size, <span class="keyword">const</span> CustomNullaryOp&amp; func)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;{</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <span class="keywordflow">if</span>(RowsAtCompileTime == 1) <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a>(1, size, func);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a>(size, 1, func);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;}</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> CustomNullaryOp&gt;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">#ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="keyword">const</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, typename DenseBase&lt;Derived&gt;::PlainObject</a>&gt;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="keyword">const</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a5dc65501accd02c30f7c1840c2a30a41">  171</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(<span class="keyword">const</span> CustomNullaryOp&amp; func)</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;{</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1CwiseNullaryOp.html">CwiseNullaryOp&lt;CustomNullaryOp, PlainObject&gt;</a>(RowsAtCompileTime, ColsAtCompileTime, func);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a68a7ece6c5629d1e9447a321fcb14ccd">  191</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a68a7ece6c5629d1e9447a321fcb14ccd">DenseBase&lt;Derived&gt;::Constant</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; value)</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;{</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(rows, cols, internal::scalar_constant_op&lt;Scalar&gt;(value));</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a1fdd3189ae3a41d250593334d82210cf">  213</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a68a7ece6c5629d1e9447a321fcb14ccd">DenseBase&lt;Derived&gt;::Constant</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> size, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; value)</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;{</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(size, internal::scalar_constant_op&lt;Scalar&gt;(value));</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;}</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#aed89b5cc6e3b7d9d5bd63aed245ccd6d">  229</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a68a7ece6c5629d1e9447a321fcb14ccd">DenseBase&lt;Derived&gt;::Constant</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; value)</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;{</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;  EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived)</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(RowsAtCompileTime, ColsAtCompileTime, internal::scalar_constant_op&lt;Scalar&gt;(value));</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;}</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::RandomAccessLinSpacedReturnType</a></div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">  246</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">DenseBase&lt;Derived&gt;::LinSpaced</a>(Sequential_t, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> size, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;{</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(size, internal::linspaced_op&lt;Scalar&gt;(low,high,size));</div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a98bb9a0f705c6dfde85b0bfff31bf88f">  250</a></span>&#160;}</div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#acf33ce20ef03ead47cb3dbcd5f416ede">  251</a></span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#aabdcdeff1c822a5465fcbe1f78e5afe0">  256</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#af56ba94e5b0330827003eadd26cfadc2">  257</a></span>&#160;EIGEN_DEPRECATED EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::RandomAccessLinSpacedReturnType</a></div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ac8cfbd436a8c9fc50defee5946451176">  258</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">DenseBase&lt;Derived&gt;::LinSpaced</a>(Sequential_t, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;{</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;  EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived)</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(Derived::SizeAtCompileTime, internal::linspaced_op&lt;Scalar&gt;(low,high,Derived::SizeAtCompileTime));</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;}</div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a18e969adfdf2db4ac44c47fbdc854683">  264</a></span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::RandomAccessLinSpacedReturnType</a></div>
<div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#aaef589c1dbd7fad93f97bd3fa1b1e768">  290</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">DenseBase&lt;Derived&gt;::LinSpaced</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> size, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;{</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(size, internal::linspaced_op&lt;Scalar&gt;(low,high,size));</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;}</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; </div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::RandomAccessLinSpacedReturnType</a></div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ad8098aa5971139a5585e623dddbea860">  302</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">DenseBase&lt;Derived&gt;::LinSpaced</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;{</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived)</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(Derived::SizeAtCompileTime, internal::linspaced_op&lt;Scalar&gt;(low,high,Derived::SizeAtCompileTime));</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;}</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#af9b150d48bc5e4366887ccb466e40c6b">  311</a></span>&#160;EIGEN_DEVICE_FUNC <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1DenseBase.html#af9b150d48bc5e4366887ccb466e40c6b">DenseBase&lt;Derived&gt;::isApproxToConstant</a></div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; val, <span class="keyword">const</span> RealScalar&amp; prec)<span class="keyword"> const</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  <span class="keyword">typename</span> internal::nested_eval&lt;Derived,1&gt;::type <span class="keyword">self</span>(derived());</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;  <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> j = 0; j &lt; cols(); ++j)</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i = 0; i &lt; rows(); ++i)</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;      <span class="keywordflow">if</span>(!internal::isApprox(<span class="keyword">self</span>.coeff(i, j), val, prec))</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;}</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a1fdd3189ae3a41d250593334d82210cf">  325</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a1ca84e4179b3e5081ed11d89bbd9e74f">  326</a></span>&#160;EIGEN_DEVICE_FUNC <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1DenseBase.html#a1ca84e4179b3e5081ed11d89bbd9e74f">DenseBase&lt;Derived&gt;::isConstant</a></div>
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#aed89b5cc6e3b7d9d5bd63aed245ccd6d">  327</a></span>&#160;(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; val, <span class="keyword">const</span> RealScalar&amp; prec) <span class="keyword">const</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;{</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;  <span class="keywordflow">return</span> isApproxToConstant(val, prec);</div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">  330</a></span>&#160;}</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a9be169c308801411aa24be93d30930bf">  337</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keywordtype">void</span> <a class="code" href="classEigen_1_1DenseBase.html#a9be169c308801411aa24be93d30930bf">DenseBase&lt;Derived&gt;::fill</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; val)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;{</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;  setConstant(val);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;}</div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">  341</a></span>&#160; </div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a5dc65501accd02c30f7c1840c2a30a41">  347</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1DenseBase.html#ac2f1e50d1f567da38da1d2f07c5ab559">DenseBase&lt;Derived&gt;::setConstant</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; val)</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;{</div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ae41a9b5050ed27d9e93c82c9c8622cd3">  349</a></span>&#160;  <span class="keywordflow">return</span> derived() = Constant(rows(), cols(), val);</div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ac22f79b812fa564061042407f2ba8f5b">  350</a></span>&#160;}</div>
<div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">  351</a></span>&#160; </div>
<div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a250ef1b827e748f3f898fb2e55cb96e2">  361</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">  363</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">PlainObjectBase&lt;Derived&gt;::setConstant</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size, <span class="keyword">const</span> Scalar&amp; val)</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;{</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;  resize(size);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;  <span class="keywordflow">return</span> setConstant(val);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;}</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00382"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#af9996d6a98f45e84a908dc9851c8332e">  382</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">PlainObjectBase&lt;Derived&gt;::setConstant</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols, <span class="keyword">const</span> Scalar&amp; val)</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;{</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;  resize(rows, cols);</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;  <span class="keywordflow">return</span> setConstant(val);</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;}</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160; </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a56e04c9e00a84eeb26774842f4a0f6fd">  396</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">PlainObjectBase&lt;Derived&gt;::setConstant</a>(NoChange_t, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols, <span class="keyword">const</span> Scalar&amp; val)</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;{</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;  <span class="keywordflow">return</span> setConstant(rows(), cols, val);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;}</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160; </div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#ae521bf911dfa2823c8056dc9c1776bcd">  409</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">PlainObjectBase&lt;Derived&gt;::setConstant</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, NoChange_t, <span class="keyword">const</span> Scalar&amp; val)</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;{</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;  <span class="keywordflow">return</span> setConstant(rows, cols(), val);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;}</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160; </div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a5d1ce9e801fa502e02b9b8cd9141ad0a">  432</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1DenseBase.html#a5d1ce9e801fa502e02b9b8cd9141ad0a">DenseBase&lt;Derived&gt;::setLinSpaced</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> newSize, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;{</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  <span class="keywordflow">return</span> derived() = Derived::NullaryExpr(newSize, internal::linspaced_op&lt;Scalar&gt;(low,high,newSize));</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;}</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160; </div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#aeb023532476d3f14c457367e0eb5f3f1">  452</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1DenseBase.html#a5d1ce9e801fa502e02b9b8cd9141ad0a">DenseBase&lt;Derived&gt;::setLinSpaced</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; low, <span class="keyword">const</span> <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>&amp; high)</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;{</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;  <span class="keywordflow">return</span> setLinSpaced(size(), low, high);</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;}</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160; </div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;<span class="comment">// zero:</span></div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00476"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ae41a9b5050ed27d9e93c82c9c8622cd3">  476</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">DenseBase&lt;Derived&gt;::Zero</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols)</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;{</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;  <span class="keywordflow">return</span> Constant(rows, cols, <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(0));</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;}</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160; </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00499"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ac22f79b812fa564061042407f2ba8f5b">  499</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">DenseBase&lt;Derived&gt;::Zero</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> size)</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;{</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;  <span class="keywordflow">return</span> Constant(size, <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(0));</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;}</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160; </div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">  516</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">DenseBase&lt;Derived&gt;::Zero</a>()</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;{</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;  <span class="keywordflow">return</span> Constant(<a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(0));</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;}</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160; </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#af36014ec300f53a65083057ed4e89822">  530</a></span>&#160;EIGEN_DEVICE_FUNC <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1DenseBase.html#af36014ec300f53a65083057ed4e89822">DenseBase&lt;Derived&gt;::isZero</a>(<span class="keyword">const</span> RealScalar&amp; prec)<span class="keyword"> const</span></div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;  <span class="keyword">typename</span> internal::nested_eval&lt;Derived,1&gt;::type <span class="keyword">self</span>(derived());</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;  <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> j = 0; j &lt; cols(); ++j)</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;    <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i = 0; i &lt; rows(); ++i)</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;      <span class="keywordflow">if</span>(!internal::isMuchSmallerThan(<span class="keyword">self</span>.coeff(i, j), <span class="keyword">static_cast&lt;</span><a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a><span class="keyword">&gt;</span>(1), prec))</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;}</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160; </div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00548"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#af230a143de50695d2d1fae93db7e4dcb">  548</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1DenseBase.html#af230a143de50695d2d1fae93db7e4dcb">DenseBase&lt;Derived&gt;::setZero</a>()</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;{</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;  <span class="keywordflow">return</span> setConstant(<a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(0));</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;}</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00564"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">  564</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">PlainObjectBase&lt;Derived&gt;::setZero</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> newSize)</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;{</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;  resize(newSize);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;  <span class="keywordflow">return</span> setConstant(Scalar(0));</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;}</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160; </div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00582"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a73ab57abb640bf35e0dbf9dba225a1db">  582</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">PlainObjectBase&lt;Derived&gt;::setZero</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols)</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;{</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;  resize(rows, cols);</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;  <span class="keywordflow">return</span> setConstant(Scalar(0));</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;}</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160; </div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00596"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#af57b7361afefe60e2940802e7ef2ca54">  596</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">PlainObjectBase&lt;Derived&gt;::setZero</a>(NoChange_t, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols)</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;{</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;  <span class="keywordflow">return</span> setZero(rows(), cols);</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;}</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160; </div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00609"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#aee6d32f2e6615645b5f1152f99bc8549">  609</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">PlainObjectBase&lt;Derived&gt;::setZero</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, NoChange_t)</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;{</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;  <span class="keywordflow">return</span> setZero(rows, cols());</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;}</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160; </div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;<span class="comment">// ones:</span></div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160; </div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00632"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a8b2a51018a73a766f5b91aef3487f013">  632</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a2755cb4023f7376880523626a8e05101">DenseBase&lt;Derived&gt;::Ones</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols)</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;{</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;  <span class="keywordflow">return</span> Constant(rows, cols, <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1));</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;}</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160; </div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#ab710a58e4a80fbcb2594242372c8fe56">  655</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a2755cb4023f7376880523626a8e05101">DenseBase&lt;Derived&gt;::Ones</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> newSize)</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;{</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;  <span class="keywordflow">return</span> Constant(newSize, <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1));</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;}</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160; </div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1DenseBase.html">DenseBase&lt;Derived&gt;::ConstantReturnType</a></div>
<div class="line"><a name="l00672"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a2755cb4023f7376880523626a8e05101">  672</a></span>&#160;<a class="code" href="classEigen_1_1DenseBase.html#a2755cb4023f7376880523626a8e05101">DenseBase&lt;Derived&gt;::Ones</a>()</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;{</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;  <span class="keywordflow">return</span> Constant(<a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1));</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;}</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160; </div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00686"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#aa56d6b4477cd3c92a9cf42f4b96e47c2">  686</a></span>&#160;EIGEN_DEVICE_FUNC <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1DenseBase.html#aa56d6b4477cd3c92a9cf42f4b96e47c2">DenseBase&lt;Derived&gt;::isOnes</a></div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;(<span class="keyword">const</span> RealScalar&amp; prec)<span class="keyword"> const</span></div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;  <span class="keywordflow">return</span> isApproxToConstant(<a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1), prec);</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;}</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160; </div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00700"></a><span class="lineno"><a class="line" href="classEigen_1_1DenseBase.html#a250ef1b827e748f3f898fb2e55cb96e2">  700</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1DenseBase.html#a250ef1b827e748f3f898fb2e55cb96e2">DenseBase&lt;Derived&gt;::setOnes</a>()</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;{</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;  <span class="keywordflow">return</span> setConstant(<a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1));</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;}</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160; </div>
<div class="line"><a name="l00714"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">  714</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00715"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a73ab57abb640bf35e0dbf9dba225a1db">  715</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00716"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">  716</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">PlainObjectBase&lt;Derived&gt;::setOnes</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> newSize)</div>
<div class="line"><a name="l00717"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#aee6d32f2e6615645b5f1152f99bc8549">  717</a></span>&#160;{</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;  resize(newSize);</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;  <span class="keywordflow">return</span> setConstant(Scalar(1));</div>
<div class="line"><a name="l00720"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">  720</a></span>&#160;}</div>
<div class="line"><a name="l00721"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#ad06b9d8ddac261a871c9ff550a925975">  721</a></span>&#160; </div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00734"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#ad06b9d8ddac261a871c9ff550a925975">  734</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">PlainObjectBase&lt;Derived&gt;::setOnes</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols)</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;{</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;  resize(rows, cols);</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;  <span class="keywordflow">return</span> setConstant(Scalar(1));</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;}</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160; </div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00748"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#ab04727b1a70e7d0b5ce9d004b3349075">  748</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">PlainObjectBase&lt;Derived&gt;::setOnes</a>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, NoChange_t)</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;{</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;  <span class="keywordflow">return</span> setOnes(rows, cols());</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;}</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160; </div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp;</div>
<div class="line"><a name="l00761"></a><span class="lineno"><a class="line" href="classEigen_1_1PlainObjectBase.html#a3bd80eb3e6779ba362628b1cb62a665e">  761</a></span>&#160;<a class="code" href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">PlainObjectBase&lt;Derived&gt;::setOnes</a>(NoChange_t, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols)</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;{</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;  <span class="keywordflow">return</span> setOnes(rows(), cols);</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;}</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160; </div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;<span class="comment">// Identity:</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160; </div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::IdentityReturnType</a></div>
<div class="line"><a name="l00784"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#acf33ce20ef03ead47cb3dbcd5f416ede">  784</a></span>&#160;<a class="code" href="classEigen_1_1MatrixBase.html#a98bb9a0f705c6dfde85b0bfff31bf88f">MatrixBase&lt;Derived&gt;::Identity</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols)</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;{</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">DenseBase&lt;Derived&gt;::NullaryExpr</a>(rows, cols, internal::scalar_identity_op&lt;Scalar&gt;());</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;}</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160; </div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::IdentityReturnType</a></div>
<div class="line"><a name="l00801"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a98bb9a0f705c6dfde85b0bfff31bf88f">  801</a></span>&#160;<a class="code" href="classEigen_1_1MatrixBase.html#a98bb9a0f705c6dfde85b0bfff31bf88f">MatrixBase&lt;Derived&gt;::Identity</a>()</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;{</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;  EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived)</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">MatrixBase&lt;Derived&gt;::NullaryExpr</a>(RowsAtCompileTime, ColsAtCompileTime, internal::scalar_identity_op&lt;Scalar&gt;());</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;}</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160; </div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00817"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a4ccbd8dfa06e9d47b9bf84711f8b9d40">  817</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1MatrixBase.html#a4ccbd8dfa06e9d47b9bf84711f8b9d40">MatrixBase&lt;Derived&gt;::isIdentity</a></div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;(<span class="keyword">const</span> RealScalar&amp; prec)<span class="keyword"> const</span></div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;  <span class="keyword">typename</span> internal::nested_eval&lt;Derived,1&gt;::type <span class="keyword">self</span>(derived());</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;  <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> j = 0; j &lt; cols(); ++j)</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;  {</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;    <span class="keywordflow">for</span>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i = 0; i &lt; rows(); ++i)</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    {</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;      <span class="keywordflow">if</span>(i == j)</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;      {</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;        <span class="keywordflow">if</span>(!internal::isApprox(<span class="keyword">self</span>.coeff(i, j), <span class="keyword">static_cast&lt;</span><a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a><span class="keyword">&gt;</span>(1), prec))</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;          <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;      }</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;      {</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        <span class="keywordflow">if</span>(!internal::isMuchSmallerThan(<span class="keyword">self</span>.coeff(i, j), <span class="keyword">static_cast&lt;</span>RealScalar<span class="keyword">&gt;</span>(1), prec))</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;          <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;      }</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;    }</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;  }</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;}</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160; </div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160; </div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived, <span class="keywordtype">bool</span> Big = (Derived::SizeAtCompileTime&gt;=16)&gt;</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;<span class="keyword">struct</span> setIdentity_impl</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;{</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;  EIGEN_DEVICE_FUNC</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;  <span class="keyword">static</span> EIGEN_STRONG_INLINE Derived&amp; run(Derived&amp; m)</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;  {</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    <span class="keywordflow">return</span> m = Derived::Identity(m.rows(), m.cols());</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;  }</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;};</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160; </div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;<span class="keyword">struct </span>setIdentity_impl&lt;Derived, true&gt;</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;{</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;  EIGEN_DEVICE_FUNC</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;  <span class="keyword">static</span> EIGEN_STRONG_INLINE Derived&amp; run(Derived&amp; m)</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;  {</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    m.setZero();</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;    <span class="keyword">const</span> <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size = numext::mini(m.rows(), m.cols());</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    <span class="keywordflow">for</span>(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> i = 0; i &lt; size; ++i) m.coeffRef(i,i) = <span class="keyword">typename</span> Derived::Scalar(1);</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    <span class="keywordflow">return</span> m;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;  }</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;};</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160; </div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;} <span class="comment">// end namespace internal</span></div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160; </div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00875"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a18e969adfdf2db4ac44c47fbdc854683">  875</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1MatrixBase.html#a18e969adfdf2db4ac44c47fbdc854683">MatrixBase&lt;Derived&gt;::setIdentity</a>()</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;{</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;  <span class="keywordflow">return</span> internal::setIdentity_impl&lt;Derived&gt;::run(derived());</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;}</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160; </div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00891"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a97dec020729928e328fe8ae9aad1e99e">  891</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1MatrixBase.html#a18e969adfdf2db4ac44c47fbdc854683">MatrixBase&lt;Derived&gt;::setIdentity</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> rows, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> cols)</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;{</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;  derived().resize(rows, cols);</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;  <span class="keywordflow">return</span> setIdentity();</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;}</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160; </div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00904"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#ac7a03a61014f37ddd2fe61ebac0c9539">  904</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#ac7a03a61014f37ddd2fe61ebac0c9539">MatrixBase&lt;Derived&gt;::Unit</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> newSize, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i)</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;{</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;  <span class="keywordflow">return</span> BasisReturnType(SquareMatrixType::Identity(newSize,newSize), i);</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;}</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160; </div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00919"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a9daf6d22d10ed8ae00432b0f641455df">  919</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#ac7a03a61014f37ddd2fe61ebac0c9539">MatrixBase&lt;Derived&gt;::Unit</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i)</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;{</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;  <span class="keywordflow">return</span> BasisReturnType(SquareMatrixType::Identity(),i);</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;}</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160; </div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00932"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a8a555b7cf626cced54670b98668c4e6d">  932</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#a8a555b7cf626cced54670b98668c4e6d">MatrixBase&lt;Derived&gt;::UnitX</a>()</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;{ <span class="keywordflow">return</span> Derived::Unit(0); }</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160; </div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00942"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a00850083489e20249b1d05b394fc5efc">  942</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#a00850083489e20249b1d05b394fc5efc">MatrixBase&lt;Derived&gt;::UnitY</a>()</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;{ <span class="keywordflow">return</span> Derived::Unit(1); }</div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160; </div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00952"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#aabdcdeff1c822a5465fcbe1f78e5afe0">  952</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#aabdcdeff1c822a5465fcbe1f78e5afe0">MatrixBase&lt;Derived&gt;::UnitZ</a>()</div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;{ <span class="keywordflow">return</span> Derived::Unit(2); }</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160; </div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00962"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#af56ba94e5b0330827003eadd26cfadc2">  962</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;::BasisReturnType</a> <a class="code" href="classEigen_1_1MatrixBase.html#af56ba94e5b0330827003eadd26cfadc2">MatrixBase&lt;Derived&gt;::UnitW</a>()</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;{ <span class="keywordflow">return</span> Derived::Unit(3); }</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160; </div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00974"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#ac7cf3e0e69550d36de8778b09a645afd">  974</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1MatrixBase.html#ac7cf3e0e69550d36de8778b09a645afd">MatrixBase&lt;Derived&gt;::setUnit</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i)</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;{</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived);</div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;  eigen_assert(i&lt;size());</div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;  derived().setZero();</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;  derived().coeffRef(i) = <a class="code" href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Scalar</a>(1);</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;  <span class="keywordflow">return</span> derived();</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;}</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160; </div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00993"></a><span class="lineno"><a class="line" href="classEigen_1_1MatrixBase.html#a90bed3b6468a17a9054b07cde7a751a6">  993</a></span>&#160;EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived&amp; <a class="code" href="classEigen_1_1MatrixBase.html#ac7cf3e0e69550d36de8778b09a645afd">MatrixBase&lt;Derived&gt;::setUnit</a>(<a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> newSize, <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i)</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;{</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;  EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived);</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;  eigen_assert(i&lt;newSize);</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;  derived().resize(newSize);</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;  <span class="keywordflow">return</span> setUnit(i);</div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;}</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160; </div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;} <span class="comment">// end namespace Eigen</span></div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160; </div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// EIGEN_CWISE_NULLARY_OP_H</span></div>
<div class="ttc" id="aclassEigen_1_1CwiseNullaryOp_html"><div class="ttname"><a href="classEigen_1_1CwiseNullaryOp.html">Eigen::CwiseNullaryOp</a></div><div class="ttdoc">Generic expression of a matrix where all coefficients are defined by a functor.</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:63</div></div>
<div class="ttc" id="aclassEigen_1_1CwiseNullaryOp_html_afef9c2479e357786e4c92da1aa625248"><div class="ttname"><a href="classEigen_1_1CwiseNullaryOp.html#afef9c2479e357786e4c92da1aa625248">Eigen::CwiseNullaryOp::functor</a></div><div class="ttdeci">const NullaryOp &amp; functor() const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:86</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html"><div class="ttname"><a href="classEigen_1_1DenseBase.html">Eigen::DenseBase</a></div><div class="ttdoc">Base class for all dense matrices, vectors, and arrays.</div><div class="ttdef"><b>Definition:</b> DenseBase.h:42</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a1c6d1dbfeb9f6491173a83eb44e14c1d"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a1c6d1dbfeb9f6491173a83eb44e14c1d">Eigen::DenseBase::LinSpaced</a></div><div class="ttdeci">static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType LinSpaced(Sequential_t, Index size, const Scalar &amp;low, const Scalar &amp;high)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:246</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a1ca84e4179b3e5081ed11d89bbd9e74f"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a1ca84e4179b3e5081ed11d89bbd9e74f">Eigen::DenseBase::isConstant</a></div><div class="ttdeci">bool isConstant(const Scalar &amp;value, const RealScalar &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:327</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a250ef1b827e748f3f898fb2e55cb96e2"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a250ef1b827e748f3f898fb2e55cb96e2">Eigen::DenseBase::setOnes</a></div><div class="ttdeci">Derived &amp; setOnes()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:700</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a2755cb4023f7376880523626a8e05101"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a2755cb4023f7376880523626a8e05101">Eigen::DenseBase::Ones</a></div><div class="ttdeci">static const ConstantReturnType Ones()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:672</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a3340c9b997f5b53a0131cf927f93b54c"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a3340c9b997f5b53a0131cf927f93b54c">Eigen::DenseBase::NullaryExpr</a></div><div class="ttdeci">static const CwiseNullaryOp&lt; CustomNullaryOp, PlainObject &gt; NullaryExpr(Index rows, Index cols, const CustomNullaryOp &amp;func)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:116</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a422ddeef58bedc7bddb1d4357688d761"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a422ddeef58bedc7bddb1d4357688d761">Eigen::DenseBase::Zero</a></div><div class="ttdeci">static const ConstantReturnType Zero()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:516</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a5d1ce9e801fa502e02b9b8cd9141ad0a"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a5d1ce9e801fa502e02b9b8cd9141ad0a">Eigen::DenseBase::setLinSpaced</a></div><div class="ttdeci">Derived &amp; setLinSpaced(Index size, const Scalar &amp;low, const Scalar &amp;high)</div><div class="ttdoc">Sets a linearly spaced vector.</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:432</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a5feed465b3a8e60c47e73ecce83e39a2"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a5feed465b3a8e60c47e73ecce83e39a2">Eigen::DenseBase::Scalar</a></div><div class="ttdeci">internal::traits&lt; Derived &gt;::Scalar Scalar</div><div class="ttdef"><b>Definition:</b> DenseBase.h:61</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a68a7ece6c5629d1e9447a321fcb14ccd"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a68a7ece6c5629d1e9447a321fcb14ccd">Eigen::DenseBase::Constant</a></div><div class="ttdeci">static const ConstantReturnType Constant(Index rows, Index cols, const Scalar &amp;value)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:191</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_a9be169c308801411aa24be93d30930bf"><div class="ttname"><a href="classEigen_1_1DenseBase.html#a9be169c308801411aa24be93d30930bf">Eigen::DenseBase::fill</a></div><div class="ttdeci">void fill(const Scalar &amp;value)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:337</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_aa56d6b4477cd3c92a9cf42f4b96e47c2"><div class="ttname"><a href="classEigen_1_1DenseBase.html#aa56d6b4477cd3c92a9cf42f4b96e47c2">Eigen::DenseBase::isOnes</a></div><div class="ttdeci">bool isOnes(const RealScalar &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:687</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_ac2f1e50d1f567da38da1d2f07c5ab559"><div class="ttname"><a href="classEigen_1_1DenseBase.html#ac2f1e50d1f567da38da1d2f07c5ab559">Eigen::DenseBase::setConstant</a></div><div class="ttdeci">Derived &amp; setConstant(const Scalar &amp;value)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:347</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_af230a143de50695d2d1fae93db7e4dcb"><div class="ttname"><a href="classEigen_1_1DenseBase.html#af230a143de50695d2d1fae93db7e4dcb">Eigen::DenseBase::setZero</a></div><div class="ttdeci">Derived &amp; setZero()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:548</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_af36014ec300f53a65083057ed4e89822"><div class="ttname"><a href="classEigen_1_1DenseBase.html#af36014ec300f53a65083057ed4e89822">Eigen::DenseBase::isZero</a></div><div class="ttdeci">bool isZero(const RealScalar &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:530</div></div>
<div class="ttc" id="aclassEigen_1_1DenseBase_html_af9b150d48bc5e4366887ccb466e40c6b"><div class="ttname"><a href="classEigen_1_1DenseBase.html#af9b150d48bc5e4366887ccb466e40c6b">Eigen::DenseBase::isApproxToConstant</a></div><div class="ttdeci">bool isApproxToConstant(const Scalar &amp;value, const RealScalar &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:312</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html"><div class="ttname"><a href="classEigen_1_1MatrixBase.html">Eigen::MatrixBase</a></div><div class="ttdoc">Base class for all dense matrices, vectors, and expressions.</div><div class="ttdef"><b>Definition:</b> MatrixBase.h:52</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_a00850083489e20249b1d05b394fc5efc"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#a00850083489e20249b1d05b394fc5efc">Eigen::MatrixBase::UnitY</a></div><div class="ttdeci">static const BasisReturnType UnitY()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:942</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_a18e969adfdf2db4ac44c47fbdc854683"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#a18e969adfdf2db4ac44c47fbdc854683">Eigen::MatrixBase::setIdentity</a></div><div class="ttdeci">Derived &amp; setIdentity()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:875</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_a4ccbd8dfa06e9d47b9bf84711f8b9d40"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#a4ccbd8dfa06e9d47b9bf84711f8b9d40">Eigen::MatrixBase::isIdentity</a></div><div class="ttdeci">bool isIdentity(const RealScalar &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:818</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_a8a555b7cf626cced54670b98668c4e6d"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#a8a555b7cf626cced54670b98668c4e6d">Eigen::MatrixBase::UnitX</a></div><div class="ttdeci">static const BasisReturnType UnitX()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:932</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_a98bb9a0f705c6dfde85b0bfff31bf88f"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#a98bb9a0f705c6dfde85b0bfff31bf88f">Eigen::MatrixBase::Identity</a></div><div class="ttdeci">static const IdentityReturnType Identity()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:801</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_aabdcdeff1c822a5465fcbe1f78e5afe0"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#aabdcdeff1c822a5465fcbe1f78e5afe0">Eigen::MatrixBase::UnitZ</a></div><div class="ttdeci">static const BasisReturnType UnitZ()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:952</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_ac7a03a61014f37ddd2fe61ebac0c9539"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#ac7a03a61014f37ddd2fe61ebac0c9539">Eigen::MatrixBase::Unit</a></div><div class="ttdeci">static const BasisReturnType Unit(Index size, Index i)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:904</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_ac7cf3e0e69550d36de8778b09a645afd"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#ac7cf3e0e69550d36de8778b09a645afd">Eigen::MatrixBase::setUnit</a></div><div class="ttdeci">Derived &amp; setUnit(Index i)</div><div class="ttdoc">Set the coefficients of *this to the i-th unit (basis) vector.</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:974</div></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html_af56ba94e5b0330827003eadd26cfadc2"><div class="ttname"><a href="classEigen_1_1MatrixBase.html#af56ba94e5b0330827003eadd26cfadc2">Eigen::MatrixBase::UnitW</a></div><div class="ttdeci">static const BasisReturnType UnitW()</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:962</div></div>
<div class="ttc" id="aclassEigen_1_1PlainObjectBase_html_a8700dc6d8e05436c0b34ae15ca9274a5"><div class="ttname"><a href="classEigen_1_1PlainObjectBase.html#a8700dc6d8e05436c0b34ae15ca9274a5">Eigen::PlainObjectBase::setOnes</a></div><div class="ttdeci">Derived &amp; setOnes(Index size)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:716</div></div>
<div class="ttc" id="aclassEigen_1_1PlainObjectBase_html_aac6bc5261783ec3008a51c2654de73e8"><div class="ttname"><a href="classEigen_1_1PlainObjectBase.html#aac6bc5261783ec3008a51c2654de73e8">Eigen::PlainObjectBase::setConstant</a></div><div class="ttdeci">Derived &amp; setConstant(Index size, const Scalar &amp;val)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:363</div></div>
<div class="ttc" id="aclassEigen_1_1PlainObjectBase_html_acc39eaf7ba22b725c86f1b9b8bb57c3c"><div class="ttname"><a href="classEigen_1_1PlainObjectBase.html#acc39eaf7ba22b725c86f1b9b8bb57c3c">Eigen::PlainObjectBase::setZero</a></div><div class="ttdeci">Derived &amp; setZero(Index size)</div><div class="ttdef"><b>Definition:</b> CwiseNullaryOp.h:564</div></div>
<div class="ttc" id="agroup__flags_html_gae4f56c2a60bbe4bd2e44c5b19cbe8762"><div class="ttname"><a href="group__flags.html#gae4f56c2a60bbe4bd2e44c5b19cbe8762">Eigen::RowMajorBit</a></div><div class="ttdeci">const unsigned int RowMajorBit</div><div class="ttdef"><b>Definition:</b> Constants.h:68</div></div>
<div class="ttc" id="anamespaceEigen_html"><div class="ttname"><a href="namespaceEigen.html">Eigen</a></div><div class="ttdoc">Namespace containing all symbols from the Eigen library.</div><div class="ttdef"><b>Definition:</b> Core:139</div></div>
<div class="ttc" id="anamespaceEigen_html_a62e77e0933482dafde8fe197d9a2cfde"><div class="ttname"><a href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Eigen::Index</a></div><div class="ttdeci">EIGEN_DEFAULT_DENSE_INDEX_TYPE Index</div><div class="ttdoc">The Index type as used for the API.</div><div class="ttdef"><b>Definition:</b> Meta.h:59</div></div>
<div class="ttc" id="anamespaceEigen_html_ad81fa7195215a0ce30017dfac309f0b2"><div class="ttname"><a href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a></div><div class="ttdeci">const int Dynamic</div><div class="ttdef"><b>Definition:</b> Constants.h:24</div></div>
<div class="ttc" id="astructEigen_1_1EigenBase_html_a554f30542cc2316add4b1ea0a492ff02"><div class="ttname"><a href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Eigen::EigenBase::Index</a></div><div class="ttdeci">Eigen::Index Index</div><div class="ttdoc">The interface type of indices.</div><div class="ttdef"><b>Definition:</b> EigenBase.h:41</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_a62d91f57b5fefafb116d3f5c1ce792a.html">Eigen</a></li><li class="navelem"><a class="el" href="dir_f84311377820247c2dbcf5d6a63ab308.html">src</a></li><li class="navelem"><a class="el" href="dir_c5b8aa1b6d8d74c5127fb52cc05e6083.html">Core</a></li><li class="navelem"><b>CwiseNullaryOp.h</b></li>
    <li class="footer">Generated on Thu Apr 21 2022 13:07:50 for Eigen by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
